const mongoose = require('mongoose')
const Schema = mongoose.Schema
mongoose.connect('mongodb://localhost/blog')

const introduceSchema = new Schema({
  title: {
    type: String
  },
  date: {
    type: String,
    default: Date.now()
  },
  hobby: {
    type: String
  },
  content: {
    type: String
  },
  logo: {
    type: String
  },
  picture: {
    type: String
  },
  information:{
    type: String
  }
})

const Introduce = mongoose.model('introduce', introduceSchema)
module.exports = Introduce